//package com.anyou.mall.pla.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.anyou.common.annotation.Log;
//import com.anyou.common.core.controller.BaseController;
//import com.anyou.common.core.domain.ApiResult;
//import com.anyou.common.enums.BusinessType;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import com.anyou.mall.pla.domain.ShoShopVipTopUpOrder;
//import com.anyou.mall.pla.service.IShoShopVipTopUpOrderService;
//import com.anyou.common.utils.poi.ExcelUtil;
//import com.anyou.common.core.page.TableDataInfo;
//
///**
// * 会员商家充值订单Controller
// *
// * @author ruoyi
// * @date 2022-04-22
// */
//@Api(tags = "会员商家充值订单")
//@RestController
//@RequestMapping("/pla/vipShopTopUpOrder")
//public class ShoShopVipTopUpOrderController extends BaseController
//{
//    @Autowired
//    private IShoShopVipTopUpOrderService shoShopVipTopUpOrderService;
//
//    /**
//     * 查询会员商家充值订单列表
//     */
//    @ApiOperation("查询会员商家充值订单列表")
//    @PreAuthorize("@ss.hasPermi('pla:vipShopTopUpOrder:list')")
//    @GetMapping("/list")
//    public TableDataInfo<List<ShoShopVipTopUpOrder>> list(ShoShopVipTopUpOrder shoShopVipTopUpOrder)
//    {
//        startPage();
//        List<ShoShopVipTopUpOrder> list = shoShopVipTopUpOrderService.selectShoShopVipTopUpOrderList(shoShopVipTopUpOrder);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出会员商家充值订单列表
//     */
//    @ApiOperation("导出会员商家充值订单列表")
//    @PreAuthorize("@ss.hasPermi('pla:vipShopTopUpOrder:export')")
//    @Log(title = "会员商家充值订单", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, ShoShopVipTopUpOrder shoShopVipTopUpOrder)
//    {
//        List<ShoShopVipTopUpOrder> list = shoShopVipTopUpOrderService.selectShoShopVipTopUpOrderList(shoShopVipTopUpOrder);
//        ExcelUtil<ShoShopVipTopUpOrder> util = new ExcelUtil<ShoShopVipTopUpOrder>(ShoShopVipTopUpOrder.class);
//        util.exportExcel(response, list, "会员商家充值订单数据");
//    }
//
//    /**
//     * 获取会员商家充值订单详细信息
//     */
//    @ApiOperation("获取会员商家充值订单详细信息")
//    @PreAuthorize("@ss.hasPermi('pla:vipShopTopUpOrder:query')")
//    @GetMapping(value = "/{vipShopTopUpOrderId}")
//    public ApiResult<ShoShopVipTopUpOrder> getInfo(@PathVariable("vipShopTopUpOrderId") Long vipShopTopUpOrderId)
//    {
//        return ApiResult.success(shoShopVipTopUpOrderService.selectShoShopVipTopUpOrderByVipShopTopUpOrderId(vipShopTopUpOrderId));
//    }
//
//    /**
//     * 新增会员商家充值订单
//     */
//    @ApiOperation("新增会员商家充值订单")
//    @PreAuthorize("@ss.hasPermi('pla:vipShopTopUpOrder:add')")
//    @Log(title = "会员商家充值订单", businessType = BusinessType.INSERT)
//    @PostMapping
//    public ApiResult add(@RequestBody ShoShopVipTopUpOrder shoShopVipTopUpOrder)
//    {
//        return ApiResult.success(shoShopVipTopUpOrderService.insertShoShopVipTopUpOrder(shoShopVipTopUpOrder));
//    }
//
//    /**
//     * 修改会员商家充值订单
//     */
//    @ApiOperation("修改会员商家充值订单")
//    @PreAuthorize("@ss.hasPermi('pla:vipShopTopUpOrder:edit')")
//    @Log(title = "会员商家充值订单", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public ApiResult edit(@RequestBody ShoShopVipTopUpOrder shoShopVipTopUpOrder)
//    {
//        return ApiResult.success(shoShopVipTopUpOrderService.updateShoShopVipTopUpOrder(shoShopVipTopUpOrder));
//    }
//
//    /**
//     * 删除会员商家充值订单
//     */
//    @ApiOperation("删除会员商家充值订单")
//    @PreAuthorize("@ss.hasPermi('pla:vipShopTopUpOrder:remove')")
//    @Log(title = "会员商家充值订单", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{vipShopTopUpOrderIds}")
//    public ApiResult remove(@PathVariable Long[] vipShopTopUpOrderIds)
//    {
//        return ApiResult.success(shoShopVipTopUpOrderService.deleteShoShopVipTopUpOrderByVipShopTopUpOrderIds(vipShopTopUpOrderIds));
//    }
//}
